package com.lbjhan.rpc.consumer;

import com.lbjhan.rpc.api.UserService;
import com.lbjhan.rpc.consumer.proxy.RpcClientResponseProxy;
import com.lbjhan.rpc.pojo.User;
import com.lbjhan.rpc.consumer.proxy.RpcClientProxy;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class ClientBootstrap {

    public static void main(String[] args) {
//        RpcClientProxy rpcClientProxy = new RpcClientProxy();
//        RpcClientResponseProxy rpcClientProxy = new RpcClientResponseProxy();
//        UserService userService =(UserService) rpcClientProxy.createProxy(UserService.class);
//        User user = userService.getById(2);
//        System.out.println(user);
        SpringApplication.run(ClientBootstrap.class, args);
    }

}
